package com.b2bpsssm.simulate;/**
 * @author JunYu
 * @create 2022-08-14--14:50
 */

import com.b2bpsssm.pojo.SysRole;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @program: B2BPSSMSystem
 *
 * @description: 生成角色
 *
 * @author: JunYu
 *
 * @create: 2022-08-14 14:50
 **/

public class GenerateSysRole {
    public static List<SysRole> generateSysRoleList(int pageSize){
        List<SysRole> sysRoles = new ArrayList<>();
        SysRole sysRole = new SysRole();
        sysRole.setId(1);
        sysRole.setTitle("测试数据");
        sysRole.setName("测试数据");
        sysRole.setStatus(1);
        sysRole.setCreate_date(new Date());
        sysRole.setUpdate_date(new Date());
        sysRole.setRemark("测试数据");
        for(int i = 0;i<pageSize;i++)
        {
            sysRoles.add(sysRole);
        }
        return sysRoles;
    }
    public static  SysRole generateRole(){
        SysRole sysRole = new SysRole();
        sysRole.setId(1);
        sysRole.setTitle("测试数据");
        sysRole.setName("测试数据");
        sysRole.setStatus(1);
        sysRole.setCreate_date(new Date());
        sysRole.setUpdate_date(new Date());
        sysRole.setRemark("测试数据");
        return sysRole;
    }
}
